// @Author miaoqing
// @Date 2024/03/28 15:12:00
// @Desc
package main

import (
	"core/component/logger"
	"core/frame/logic"
	"core/ini"
	"flag"
	"strconv"
)

var (
	processIdx = flag.Int("pidx", 0, "the same process number")
)

func main() {
	flag.Parse()

	logger.SetLogFile("/frame"+"_"+strconv.Itoa(*processIdx), "frame")
	logger.SetLogLevel("DEBUG")

	ini.LoadCfg("conf.ini")

	logic.ServerInstance().Start(ini.CfgGetMe(), *processIdx)

	logger.Info("[停服] 关闭Frame服务器")

	logger.Flush()
}
